﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="clr-namespace:Bigeagle.WPF.Controls;assembly=Bigeagle.WPF.Controls" x:Class="TestMapControl.MainWindow"
        Title="MainWindow" Height="400" Width="600" Loaded="Window_Loaded">
    <Window.Resources>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Controls:MapControl x:Name="mapControl"  GeoCode="36.04,120.19" MaxTileCacheCount="500" MovePixels="100" ScaleWidth="30" Grid.RowSpan="1" Grid.Row="1">
            <Controls:MapControl.AdditionalLayers>
                <!--
                <Controls:GoogleMapStyles>Weather</Controls:GoogleMapStyles>
                <Controls:GoogleMapStyles>Traffic</Controls:GoogleMapStyles>
                <Controls:GoogleMapStyles>Text</Controls:GoogleMapStyles>
              -->
            </Controls:MapControl.AdditionalLayers>
        </Controls:MapControl>
            <Grid  Margin="0,0,0,0"  HorizontalAlignment="Stretch">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="100"></ColumnDefinition>

                </Grid.ColumnDefinitions>
                <Label Content="关键字：" Grid.Column="0" />
                <TextBox x:Name="tbKeyword" Margin="0,1" Grid.Column="1" />
                <Button x:Name="btnSearch" Content="搜  索"  Grid.Column="2"/>
                <ComboBox Grid.Column="3" x:Name="cboMapStyle"  SelectionChanged="cboMapStyle_SelectionChanged" Margin="32,0,0,0" />
            </Grid>

    </Grid>
</Window>
